package org.seed.example.demoprovider;


import org.springframework.stereotype.Component;

import java.text.SimpleDateFormat;
import java.util.Date;


@Component
public class StudentServiceImpl implements StudentService {

    @Override
    public Integer getMyScore() {
        return 100;
    }

    @Override
    public String getMyName() {
        return "Guanglin.Gao";
    }

    @Override
    public String checkDateParam(Date time) {
        SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
        System.out.println(dateFormat.format(time));
        return "ok";
    }

}
